//
//  WebViewHistoryItem.m
//  CLBrowser
//
//  Created by 梁慧聪 on 2017/3/15.
//  Copyright © 2021年 梁慧聪. All rights reserved.
//

#import "CLWebViewHistoryItem.h"

@interface CLWebViewHistoryItem ()

@property (nonatomic, copy) NSString *URLString;
@property (nonatomic, copy) NSString *title;

@end

@implementation CLWebViewHistoryItem

- (instancetype)initWithURLString:(NSString *)URLString title:(NSString *)title{
    if (self = [super init]) {
        _URLString = URLString;
        _title = title;
    }
    return self;
}
- (instancetype)initWithItem:(WKBackForwardListItem *)item {
    if (self = [super init]) {
        _URLString = item.URL.absoluteString;
        _title = item.title;
    }
    return self;
}

@end
